import 'package:flu_framework/common/widgets/my_app_bar.dart';
import 'package:flustars_flutter3/flustars_flutter3.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get/get_core/src/get_main.dart';

class BrowseImagePage extends StatefulWidget {
  const BrowseImagePage({Key? key}) : super(key: key);

  @override
  State<BrowseImagePage> createState() => _BrowseImagePageState();
}

class _BrowseImagePageState extends State<BrowseImagePage> {
  late String _title;
  late String _imgUrl;
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    Map arguments = Get.arguments;
    _imgUrl = arguments['imgUrl'] ?? '';
    _title = arguments['title'] ?? '';
  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: MyAppBar(title: _title,),
      body: SingleChildScrollView(
        physics: BouncingScrollPhysics(),
        child: Image.network(_imgUrl,fit: BoxFit.cover,width: ScreenUtil.getScreenW(context),),
      ),
    );
  }
}
